<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:86:"/app/wwwroot/root/gongzi/public/../application/index/view/manage/payslip_feedback.html";i:1671875146;s:66:"/app/wwwroot/root/gongzi/application/index/view/layout/manage.html";i:1671875144;s:66:"/app/wwwroot/root/gongzi/application/index/view/common/script.html";i:1671875145;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head class="layui-layout-body">
    <meta charset="utf-8">
    <title><?php echo htmlentities($site['name']); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="/assets/js/html5shiv.js"></script>
    <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var require = {
            config: <?php echo json_encode($config); ?>
        };
    </script>
</head>
<body class="layui-layout-body" id="layer1">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-nav layui-layout-right">
            <div class="head_img"><img src="<?php echo cdnurl(htmlentities($user['avatar'])); ?>" alt=""/><?php echo $user['nickname']; ?></div>
        </div>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧垂直导航区域-->
            <div class="logo"><img src="/assets/manage/images/logo.png" width="64" height="64" alt=""/></div>
            <ul class="layui-nav nav">
                <?php if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/index'); ?>">
                    <a href="<?php echo url('manage/index'); ?>"><i class="iconfont icon-shouye"></i>首页</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_add')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_add'); ?>">
                    <a href="<?php echo url('manage/payslip_add'); ?>"><i class="iconfont icon-gongzitiao"></i>新增工资条</a>
                </li>
                <?php endif; if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_list'); ?>">
                    <a href="<?php echo url('manage/payslip_list'); ?>"><i class="iconfont icon-fasongxiaoxi"></i>发送记录</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_feedback')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_feedback'); ?>">
                    <a href="<?php echo url('manage/payslip_feedback'); ?>"><i class="iconfont icon-xinxi"></i>反馈查看</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_settings')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_settings'); ?>">
                    <a href="<?php echo url('manage/payslip_settings'); ?>"><i class="iconfont icon-shezhi2"></i>发放设置</a>
                </li>
                <?php endif; if($auth->check('manage/address_book')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/address_book'); ?>">
                    <a href="<?php echo url('manage/address_book'); ?>"><i class="iconfont icon-bg-maillist"></i>通讯录</a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div class="content">
    <div class="layui-card ">
        <div class="search_box">
            <form id="search-form" class="layui-form layui-clear" role="form" data-toggle="validator" method="GET" action="<?php echo url('manage/payslip_feedback'); ?>">
                <div class="search_item">
                    <a class="item<?php echo $status==0?' active':''; ?>" href="<?php echo url('manage/payslip_feedback'); ?>">全部</a>
                    <a class="item<?php echo $status==2?' active':''; ?>" href="<?php echo url('manage/payslip_feedback', ['status' => 2]); ?>">已处理</a>
                    <a class="item<?php echo $status==1?' active':''; ?>" href="<?php echo url('manage/payslip_feedback', ['status' => 1]); ?>">未处理</a>
                </div>
                <div class="search_input">
                    <input type="hidden" name="page" value="<?php echo $lists['current_page']; ?>">
                    <input type="text" name="keywords" value="<?php echo htmlentities($keywords); ?>" placeholder="请输入员工姓名、手机号搜索" class="layui-input">
                    <button type="submit" class="search_icon iconfont icon-sousuo"></button>
                </div>
            </form>
        </div>
        <div class="layui-card-body">
            <div class="fk_content">
                <table class="layui-table" lay-skin="line" lay-even="">
                    <thead>
                    <tr>
                        <th width="70">姓名</th>
                        <th width="80">部门</th>
                        <th width="100">职位</th>
                        <th width="90">账号</th>
                        <th width="70">月份</th>
                        <th width="160">工资条名称</th>
                        <th>反馈内容</th>
                        <th width="70">状态</th>
                        <th width="50">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if($lists['data']): foreach($lists['data'] as $item): ?>
                    <tr>
                        <td><?php echo (isset($item['nickname']) && ($item['nickname'] !== '')?$item['nickname']:'-'); ?></td>
                        <td><?php echo (isset($item['department_name']) && ($item['department_name'] !== '')?$item['department_name']:'-'); ?></td>
                        <td><?php echo (isset($item['position']) && ($item['position'] !== '')?$item['position']:'-'); ?></td>
                        <td><?php echo (isset($item['username']) && ($item['username'] !== '')?$item['username']:'-'); ?></td>
                        <td><?php echo (isset($item['month']) && ($item['month'] !== '')?$item['month']:'-'); ?></td>
                        <td><?php echo date('Y年m月',strtotime($item['month'])); ?>工资</td>
                        <td><?php echo (isset($item['content']) && ($item['content'] !== '')?$item['content']:'-'); ?></td>
                        <td><?php if($item['status'] == 2): ?>已处理<?php else: ?><span class="color_EF4033">未处理</span><?php endif; ?></td>
                        <td><a class="cl_but view_btn_<?php echo $item['id']; ?>" data-id="<?php echo $item['id']; ?>"><?php if($item['status'] == 2): ?>查看<?php else: ?>处理<?php endif; ?></a></td>
                    </tr>
                    <?php endforeach; endif; ?>
                    </tbody>
                </table>
            </div>
            <div id="laypage" data-total="<?php echo $lists['total']; ?>" data-per_page="<?php echo $lists['per_page']; ?>" data-current_page="<?php echo $lists['current_page']; ?>"></div>
        </div>
    </div>
</div>

<div class="pop cl_pop">
    <div class="pop_content">
        <form id="post-form" class="layui-form layui-clear" role="form" data-toggle="validator" method="POST" action="<?php echo url('manage/payslip_feedback_save'); ?>"></form>
    </div>
</div>

<script type="text/html" id="pop_tpl">
    <div class="layui-card-header">反馈处理</div>
    <div class="cl_content">
        <div class="pipei_item2">
            <div class="head_img"><img src="<%=data['avatar']%>" alt=""></div>
            <h3><%=data['nickname']%></h3>
            <p><%=data['department_name']%></p>
        </div>
        <% for(i = 0; i < data['content'].length; i ++) { %>
        <% if (data['content'][i]['answer'] == '') { %>
        <div class="cl_item">
            <div class="layui-elem-quote">员工反馈</div>
            <div class="fk_text"><%=data['content'][i]['question']%></div>
            <div class="layui-elem-quote">处理结果</div>
            <div class="fk_text">
                <textarea placeholder="请输入处理结果…" name="content[<%=i%>]" data-rule="required" data-msg-required="请输入处理结果"></textarea>
            </div>
        </div>
        <% } else { %>
        <div class="cl_item2">
            <div class="item">
                <h3><%=data['content'][i]['question']%></h3>
                <p><%=data['content'][i]['answer']%></p>
                <p class="time"><%=data['content'][i]['answer_time']%></p>
                <i class="iconfont icon-shanchu" data-id="<%=data['id']%>" data-key="<%=i%>"></i>
            </div>
        </div>
        <% } %>
        <% } %>
    </div>
    <div class="but">
        <% if (data['status'] == 1) { %>
        <input type="hidden" name="id" value="<%=data['id']%>">
        <button type="button" class="layui-btn layui-btn-primary">取消</button>
        <button type="submit" class="layui-btn layui-btn-determine">提交处理结果</button>
        <% } else { %>
        <button type="button" class="layui-btn layui-btn-primary">关闭</button>
        <% } %>
    </div>
</script>

    </div>
</div>
<link rel="stylesheet" href="/assets/manage/layui/css/layui.css">
<link rel="stylesheet" href="/assets/manage/css/css.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>">
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_3789954_npmbld8fjlc.css">
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
</body>
</html>